<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%
if (request.getParameter("group") == null){
%>	<script>
	$("#mainPage_content").hide().fadeIn(1000).load("main/dashboard.jsp");
	</script>
	<%
}
else 
	if ("ourLocals".equals(request.getParameter("group"))) {
%>
<script>
$("#mainPage_content").hide().fadeIn(1000).load("main/ourLocals.jsp");
</script>
<%
	} else if ("mainP".equals(request.getParameter("group"))) {
%>
<script>
$("#mainPage_content").hide().fadeIn(1000).load("main/dashboard.jsp");
</script>
<%
	} else if ("deleteGame".equals(request.getParameter("group"))) {
%>
<script>
$("#mainPage_content").hide().fadeIn(1000).load("games/deleteGame.jsp");
</script>
<%
	}else if ("rankings".equals(request.getParameter("group"))) {
		%>
		<script>
		$("#mainPage_content").hide().fadeIn(1000).load("main/rankings.jsp");
		</script>
		<%
			}

else if ("statistics".equals(request.getParameter("group"))) {
	%>
	<script>
	$("#mainPage_content").hide().fadeIn(1000).load("main/statistics.jsp");
	</script>
	<%
		}
	else {
		%>
		<script>
	$("#mainPage_content").hide().fadeIn(1000).html("Podana podstrona nie istnieje.");
	</script>
	<%
//out.println("Podana podstrona nie istnieje.");
	}
%>
